package com.web.dao;

import com.web.entity.Student;

import java.util.List;

/**
 * 学生数据访问接口
 */
public interface StudentDAO {

    /**
     * 查询所有学生
     * @return
     */
    List<Student> selectAllStudents();
    List<Student> selectByKeyWord(String keyword);
    Student selectById(String id);
    void addStudent(String name, String age,String cellphone,String address,String gender);
    void updateStudent(String name, String age,String cellphone,String address,String gender,String id);
    void deleteStudent(String id);

    List<Student>selectStudentPage(int start,int len);

    int selectStudentCount();

    void insertStudent(Student student);
    void updateStudent(Student student);
    void deleteStudent(int id);
}